Skip to content

test: Added unit tests to MappingUtilities.cs #810

Merged
Joseph2910 merged 7 commits intomainfrom
DTOSS-7884-Add-Mapping-Utilities-Tests
Mar 20, 2025
Merged

test: Added unit tests to MappingUtilities.cs #810
Joseph2910 merged 7 commits intomainfrom
DTOSS-7884-Add-Mapping-Utilities-Tests

Conversation

@Joseph2910
Copy link
Copy Markdown
Contributor

Description

Added Unit tests so coverage is now at 98%. Also changed ParseStringFlag method to accept null and return an argument error as expected

Context

https://nhsd-jira.digital.nhs.uk/browse/DTOSS-7884

Type of changes

  • Refactoring (non-breaking change)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would change existing functionality)
  • Bug fix (non-breaking change which fixes an issue)

Checklist

  • I am familiar with the contributing guidelines
  • I have followed the code style of the project
  • I have added tests to cover my changes
  • I have updated the documentation accordingly
  • This PR is a result of pair or mob programming

Sensitive Information Declaration

To ensure the utmost confidentiality and protect your and others privacy, we kindly ask you to NOT including PII (Personal Identifiable Information) / PID (Personal Identifiable Data) or any other sensitive data in this PR (Pull Request) and the codebase changes. We will remove any PR that do contain any sensitive information. We really appreciate your cooperation in this matter.

  • I confirm that neither PII/PID nor sensitive data are included in this PR and the codebase changes.

Also changed MappingUtilities.cs method ParseStringFlag to accept null and return ArgumentException as expected
@Joseph2910 Joseph2910 added the test coverage A PR that is concerned with Unit/Component tests only label Mar 13, 2025
andrewmorris43
andrewmorris43 previously approved these changes Mar 13, 2025
sudipnhs
sudipnhs previously approved these changes Mar 17, 2025
Comment thread application/CohortManager/src/Functions/Shared/Utilities/MappingUtilities.cs Outdated
@Joseph2910 Joseph2910 dismissed stale reviews from sudipnhs and andrewmorris43 via 60c186d March 20, 2025 11:31
@Joseph2910 Joseph2910 added this pull request to the merge queue Mar 20, 2025
Merged via the queue into main with commit 04980d6 Mar 20, 2025
27 checks passed
@Joseph2910 Joseph2910 deleted the DTOSS-7884-Add-Mapping-Utilities-Tests branch March 20, 2025 12:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

test coverage A PR that is concerned with Unit/Component tests only

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants